package com.xiaomo.gitee.datamanager.service.image;

import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface ImageService {

    void uploadImage(Long pCategoryId,Long classification,String description, MultipartFile[] imageFiles);

    ResponseEntity<byte[]> getOriginalImage(String id);

    ResponseEntity<byte[]> getSmallImage(String id);

    Map<String, Object> getClassifiedImagesService(Long category,int page,int amountPerPage);

    Map<String,Object> searchImagesService(String info,int page,int amountPerPage);

    Map<String,Object> filterImages(List<Long> tagsId,int page,int amountPerPage);

    String getDescription(String id);

    void deleteImage(String id);
}
